package com.travel.web.home;

import java.util.List;

import com.travel.model.City;
import com.travel.persitence.CityDao;
import com.travel.web.common.AbstractAction;

public class HomeAction extends AbstractAction {
	private static final long serialVersionUID = 1543596752207940860L;
	private List<City> cities;

	public String execute() {
		CityDao beanCityDao = (CityDao) this.getBean("beanCityDao");
		cities = beanCityDao.list();
		return SUCCESS;
	}

	public List<City> getCities() {
		return cities;
	}

	public void setCities(List<City> cities) {
		this.cities = cities;
	}
}
